#ifndef __FRUIT__
#define __FRUIT__

#include "GameMap.hpp"
#include "Tools.hpp"
#include "eobject.hpp"

class Fruit : public EObject
{
    int radius;
    int score;
    POS Pos;
    bool eaten;
public:
    Fruit() {}
    int getid();
    virtual void draw() = 0;
    void eat();
    int getscore();
};

extern std::vector<std::shared_ptr<Fruit>> __fruits;

class smallFruit : Fruit
{
    int radius;
    int score;
    POS Pos;

public:
    smallFruit()
    {
        radius = 1;
        score = 1;
    }
    int getid();
    void draw();
};

class bonusFruit : Fruit
{
    int radius;
    int score;
    POS Pos;

public:
    bonusFruit()
    {
        radius = 2;
        score = 1;
    }
    int getid();
    void draw();
};

#endif